import axios from 'axios';


let util = {};
const ajaxUrl = "";

util.ajax = axios.create({
  baseURL: ajaxUrl,
  timeout: 30000
});
util.setUser = function (user) {
  localStorage.setItem("user", JSON.stringify(user));
};
util.getUser = function () {
  return JSON.parse(localStorage.getItem("user"));
};
export default util;
